Package io.realm.kotlin.mongodb.ext

Types

CallBuilder
Link copied to clipboard
@ExperimentalRealmSerializerApi()
class CallBuilder<T>
Builder used to construct a call defining serializers for the different arguments and return value.

Functions

call
Link copied to clipboard
inline suspend fun <T> Functions.call(name: String, vararg args: Any?): T
Invokes an Atlas function.
@ExperimentalRealmSerializerApi()
inline suspend fun <T> Functions.call(name: String, callBuilderBlock: CallBuilder<T>.() -> Unit): T
Invokes an Atlas function using the EJson encoder defined in AppConfiguration.ejson.
customData
Link copied to clipboard
@ExperimentalRealmSerializerApi()
inline fun <T> User.customData(): T?
Returns the custom user data associated with the user in the Realm App as T.
@ExperimentalRealmSerializerApi()
fun <T> User.customData(serializer: KSerializer<T>): T?
Returns the custom user data associated with the user in the Realm App as T.
customDataAsBsonDocument
Link copied to clipboard
inline fun User.customDataAsBsonDocument(): BsonDocument?
Return the custom user data associated with the user in the Realm App as BsonDocument.
profile
Link copied to clipboard
@ExperimentalRealmSerializerApi()
inline fun <T> User.profile(): T
Returns the profile for this user as a T.
@ExperimentalRealmSerializerApi()
fun <T> User.profile(serializer: KSerializer<T>): T
Returns the profile for this user as a T.
profileAsBsonDocument
Link copied to clipboard
inline fun User.profileAsBsonDocument(): BsonDocument
Returns the profile for this user as BsonDocument.